package springjunit;

public class User  implements Comparable<User>{
    private String name;
    private String index;
    
    
	public User(String name, String index) {
		super();
		this.name = name;
		this.index = index;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIndex() {
		return index;
	}
	public void setIndex(String index) {
		this.index = index;
	}
	
	 @Override
	    public int compareTo(User arg0) { 
	        return this.getIndex().compareTo(arg0.getIndex()); 
	    } 

    
}
